import 'package:flutter_app/generated/json/base/json_convert_content.dart';
import 'package:flutter_app/bean/list_self_sign_collect_entity.dart';

ListSelfSignCollectEntity $ListSelfSignCollectEntityFromJson(Map<String, dynamic> json) {
	final ListSelfSignCollectEntity listSelfSignCollectEntity = ListSelfSignCollectEntity();
	final int? pageNum = jsonConvert.convert<int>(json['pageNum']);
	if (pageNum != null) {
		listSelfSignCollectEntity.pageNum = pageNum;
	}
	final int? pageSize = jsonConvert.convert<int>(json['pageSize']);
	if (pageSize != null) {
		listSelfSignCollectEntity.pageSize = pageSize;
	}
	final int? totalSize = jsonConvert.convert<int>(json['totalSize']);
	if (totalSize != null) {
		listSelfSignCollectEntity.totalSize = totalSize;
	}
	final int? totalPages = jsonConvert.convert<int>(json['totalPages']);
	if (totalPages != null) {
		listSelfSignCollectEntity.totalPages = totalPages;
	}
	final List<ListSelfSignCollectContent>? content = jsonConvert.convertListNotNull<ListSelfSignCollectContent>(json['content']);
	if (content != null) {
		listSelfSignCollectEntity.content = content;
	}
	return listSelfSignCollectEntity;
}

Map<String, dynamic> $ListSelfSignCollectEntityToJson(ListSelfSignCollectEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['pageNum'] = entity.pageNum;
	data['pageSize'] = entity.pageSize;
	data['totalSize'] = entity.totalSize;
	data['totalPages'] = entity.totalPages;
	data['content'] =  entity.content?.map((v) => v.toJson()).toList();
	return data;
}

ListSelfSignCollectContent $ListSelfSignCollectContentFromJson(Map<String, dynamic> json) {
	final ListSelfSignCollectContent listSelfSignCollectContent = ListSelfSignCollectContent();
	final String? taskId = jsonConvert.convert<String>(json['taskId']);
	if (taskId != null) {
		listSelfSignCollectContent.taskId = taskId;
	}
	final String? taskName = jsonConvert.convert<String>(json['taskName']);
	if (taskName != null) {
		listSelfSignCollectContent.taskName = taskName;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		listSelfSignCollectContent.collectId = collectId;
	}
	final String? collectName = jsonConvert.convert<String>(json['collectName']);
	if (collectName != null) {
		listSelfSignCollectContent.collectName = collectName;
	}
	final String? special = jsonConvert.convert<String>(json['special']);
	if (special != null) {
		listSelfSignCollectContent.special = special;
	}
	final String? collectStatus = jsonConvert.convert<String>(json['collectStatus']);
	if (collectStatus != null) {
		listSelfSignCollectContent.collectStatus = collectStatus;
	}
	final String? userId = jsonConvert.convert<String>(json['userId']);
	if (userId != null) {
		listSelfSignCollectContent.userId = userId;
	}
	final String? status = jsonConvert.convert<String>(json['status']);
	if (status != null) {
		listSelfSignCollectContent.status = status;
	}
	final String? isLimit = jsonConvert.convert<String>(json['isLimit']);
	if (isLimit != null) {
		listSelfSignCollectContent.isLimit = isLimit;
	}
	final String? limitDay = jsonConvert.convert<String>(json['limitDay']);
	if (limitDay != null) {
		listSelfSignCollectContent.limitDay = limitDay;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		listSelfSignCollectContent.createTime = createTime;
	}
	final String? totalSign = jsonConvert.convert<String>(json['totalSign']);
	if (totalSign != null) {
		listSelfSignCollectContent.totalSign = totalSign;
	}
	final String? content = jsonConvert.convert<String>(json['content']);
	if (content != null) {
		listSelfSignCollectContent.content = content;
	}
	final String? createBy = jsonConvert.convert<String>(json['createBy']);
	if (createBy != null) {
		listSelfSignCollectContent.createBy = createBy;
	}
	final String? orgName = jsonConvert.convert<String>(json['orgName']);
	if (orgName != null) {
		listSelfSignCollectContent.orgName = orgName;
	}
	final String? taskType = jsonConvert.convert<String>(json['taskType']);
	if (taskType != null) {
		listSelfSignCollectContent.taskType = taskType;
	}
	return listSelfSignCollectContent;
}

Map<String, dynamic> $ListSelfSignCollectContentToJson(ListSelfSignCollectContent entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['taskId'] = entity.taskId;
	data['taskName'] = entity.taskName;
	data['collectId'] = entity.collectId;
	data['collectName'] = entity.collectName;
	data['special'] = entity.special;
	data['collectStatus'] = entity.collectStatus;
	data['userId'] = entity.userId;
	data['status'] = entity.status;
	data['isLimit'] = entity.isLimit;
	data['limitDay'] = entity.limitDay;
	data['createTime'] = entity.createTime;
	data['totalSign'] = entity.totalSign;
	data['content'] = entity.content;
	data['createBy'] = entity.createBy;
	data['orgName'] = entity.orgName;
	data['taskType'] = entity.taskType;
	return data;
}